{include file="public/same_header" /}

<!-- 右侧的开始 -->
<div class="right_bar jianchajilu hou_huanzheguanli hou_yonghuguanli zhanghaoguanli bumenguanli">
    {include file="public/go_back" /}
    <div class="jcjl_detail">
        <div class="top_dec">
            <div>
                <span class="theme">{$breadcrumb}</span>
                <strong>共{$count}个部门</strong>
                <div class="search_box">
                    <form action="" method="get">
                    <div class="sou_box">
                        <input type="text" name="name" placeholder="输入部门名称">
                        <input type="submit" value="" class="sou_btn">
                    </div>
                        </form>

                    <em><a href="{:url('authority/add_department')}" class="btn-permission" data-url="authority/add_department">新建部门</a></em>

                </div>
            </div>
        </div>
        <div class="data">
            <!-- 下面的   列表 开始  -->
            <div class="liebiao">

                <div class="liebiao_dec">
                    <div class="liebiao_top">
                        <strong class="first">部门</strong>
                        <strong class="second">职能描述</strong>
                        <strong class="third">成员数量</strong>
                        <strong class="fifth">添加时间</strong>
                        <strong class="sixth">操作</strong>
                    </div>
                    <ul>
                        {foreach name="list" item="vo"}
                        <li>
										<span class="first">
											<em>{$vo['department']}</em>
										</span>
										<span class="second">
											<em>{$vo['comment']}</em>
										</span>
										<span  class="third">
											<em>{$vo['count_admin']}</em>
										</span>
										<span class="fifth">
											{$vo['create_time']}
										</span>
										<span class="sixth">

										   <a class="btn-permission" data-url="authority/edit_department" href="{:url('authority/edit_department',array('id'=>$vo['id']))}">编辑</a>
                                                 <a  class="a-post" class="btn-permission" data-url="authority/del_department" post-msg="你确定要删除吗" post-url="{:url('authority/del_department',array('id'=>$vo['id']))}">
                                                     <input type="button"  value="删除">
                                             </a>

										</span>
                        </li>
                        {/foreach}


                    </ul>
                </div>
            </div>
            <!-- 列表的结束 -->
            {include file="public/page" /}

        </div>
    </div>
</div>
<!-- 右侧的结束 -->
</div>
</div>
{include file="public/footer" /}